.class public Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnTouchListener;


# static fields
.field private static final DISPLACE_CHOICE:I = 0x50


# instance fields
.field private animationTime:J

.field private backView:Landroid/view/View;

.field private checked:Ljava/util/List;

.field private configShortAnimationTime:J

.field private dismissAnimationRefCount:I

.field private downPosition:I

.field private downX:F

.field private frontView:Landroid/view/View;

.field hasOpenedWhenDown:Z

.field private leftOffset:F

.field private listViewMoving:Z

.field private maxFlingVelocity:I

.field private minFlingVelocity:I

.field private moveThresholds:I

.field private oldSwipeActionLeft:I

.field private oldSwipeActionRight:I

.field private opened:Ljava/util/List;

.field private openedRight:Ljava/util/List;

.field private parentView:Landroid/view/View;

.field private paused:Z

.field private pendingDismisses:Ljava/util/List;

.field private rect:Landroid/graphics/Rect;

.field private rightOffset:F

.field singleOpened:Z

.field private slop:I

.field private swipeActionLeft:I

.field private swipeActionRight:I

.field private swipeBackView:I

.field private swipeClosesAllItemsWhenListMoves:Z

.field private swipeCurrentAction:I

.field private swipeDrawableChecked:I

.field private swipeDrawableUnchecked:I

.field private swipeFrontView:I

.field private swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

.field private swipeMode:I

.field private swipeOpenOnLongPress:Z

.field private swiping:Z

.field private swipingRight:Z

.field private velocityTracker:Landroid/view/VelocityTracker;

.field private viewWidth:I


# direct methods
.method public constructor <init>(Lcom/fortysevendeg/swipelistview/SwipeListView;II)V
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    iput-boolean v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeOpenOnLongPress:Z

    iput-boolean v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeClosesAllItemsWhenListMoves:Z

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeBackView:I

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rect:Landroid/graphics/Rect;

    iput v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    iput v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableChecked:I

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableUnchecked:I

    iput v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    const/4 v0, 0x3

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    iput-boolean v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->hasOpenedWhenDown:Z

    iput-boolean v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->singleOpened:Z

    iput p2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    iput p3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeBackView:I

    invoke-virtual {p1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->slop:I

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->minFlingVelocity:I

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v0

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->maxFlingVelocity:I

    invoke-virtual {p1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const/high16 v1, 0x10e

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getInteger(I)I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->configShortAnimationTime:J

    iget-wide v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->configShortAnimationTime:J

    iput-wide v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    iput-object p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    return-void
.end method

.method static synthetic access$0(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)Lcom/fortysevendeg/swipelistview/SwipeListView;
    .locals 1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)I
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    return v0
.end method

.method static synthetic access$10(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)I
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    return v0
.end method

.method static synthetic access$11(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    return-void
.end method

.method static synthetic access$12(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->removePendingDismisses(I)V

    return-void
.end method

.method static synthetic access$2(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeOpenOnLongPress:Z

    return v0
.end method

.method static synthetic access$3(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swapChoiceState(I)V

    return-void
.end method

.method static synthetic access$4(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)V
    .locals 0

    invoke-direct {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->resetCell()V

    return-void
.end method

.method static synthetic access$5(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$6(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$7(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeClosesAllItemsWhenListMoves:Z

    return v0
.end method

.method static synthetic access$8(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->listViewMoving:Z

    return-void
.end method

.method static synthetic access$9(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    return-void
.end method

.method private closeAnimate(Landroid/view/View;I)V
    .locals 2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-direct {p0, p1, v0, v1, p2}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->generateRevealAnimate(Landroid/view/View;ZZI)V

    :cond_0
    return-void
.end method

.method public static enableDisableViewGroup(Landroid/view/ViewGroup;Z)V
    .locals 4

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-lt v1, v2, :cond_0

    return-void

    :cond_0
    invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setEnabled(Z)V

    instance-of v3, v0, Landroid/view/ViewGroup;

    if-eqz v3, :cond_1

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {v0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->enableDisableViewGroup(Landroid/view/ViewGroup;Z)V

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method private generateAnimate(Landroid/view/View;ZZI)V
    .locals 3

    const/4 v2, 0x2

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-nez v0, :cond_3

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    if-eqz p3, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    if-ne v0, v2, :cond_2

    if-eqz p3, :cond_0

    :cond_2
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->generateRevealAnimate(Landroid/view/View;ZZI)V

    :cond_3
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_4

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->parentView:Landroid/view/View;

    invoke-direct {p0, v0, p2, p3, p4}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->generateDismissAnimate(Landroid/view/View;ZZI)V

    :cond_4
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v2, :cond_0

    invoke-direct {p0, p1, p4}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->generateChoiceAnimate(Landroid/view/View;I)V

    goto :goto_0
.end method

.method private generateChoiceAnimate(Landroid/view/View;I)V
    .locals 3

    invoke-static {p1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->animate(Landroid/view/View;)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->translationX(F)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    iget-wide v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    invoke-virtual {v0, v1, v2}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->setDuration(J)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$4;

    invoke-direct {v1, p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$4;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)V

    invoke-virtual {v0, v1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->setListener(Lcom/nineoldandroids/animation/Animator$AnimatorListener;)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    return-void
.end method

.method private generateDismissAnimate(Landroid/view/View;ZZI)V
    .locals 3

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, p4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_2

    if-nez p2, :cond_4

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    invoke-interface {v0, p4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v0, v0

    iget v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    sub-float/2addr v0, v2

    float-to-int v0, v0

    :goto_0
    move v2, v0

    :goto_1
    const/4 v0, 0x1

    if-eqz p2, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    move v0, v1

    :cond_0
    invoke-static {p1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->animate(Landroid/view/View;)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v1

    int-to-float v2, v2

    invoke-virtual {v1, v2}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->translationX(F)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v1

    int-to-float v0, v0

    invoke-virtual {v1, v0}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->alpha(F)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    iget-wide v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    invoke-virtual {v0, v1, v2}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->setDuration(J)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$5;

    invoke-direct {v1, p0, p2, p1, p4}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$5;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;ZLandroid/view/View;I)V

    invoke-virtual {v0, v1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->setListener(Lcom/nineoldandroids/animation/Animator$AnimatorListener;)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    return-void

    :cond_1
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    neg-int v0, v0

    int-to-float v0, v0

    iget v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    add-float/2addr v0, v2

    float-to-int v0, v0

    goto :goto_0

    :cond_2
    if-eqz p2, :cond_4

    if-eqz p3, :cond_3

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v0, v0

    iget v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    sub-float/2addr v0, v2

    float-to-int v0, v0

    :goto_2
    move v2, v0

    goto :goto_1

    :cond_3
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    neg-int v0, v0

    int-to-float v0, v0

    iget v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    add-float/2addr v0, v2

    float-to-int v0, v0

    goto :goto_2

    :cond_4
    move v2, v1

    goto :goto_1
.end method

.method private generateRevealAnimate(Landroid/view/View;ZZI)V
    .locals 3

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, p4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    if-nez p2, :cond_3

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    invoke-interface {v0, p4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v0, v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    :goto_0
    invoke-static {p1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->animate(Landroid/view/View;)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v1

    int-to-float v0, v0

    invoke-virtual {v1, v0}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->translationX(F)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    iget-wide v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    invoke-virtual {v0, v1, v2}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->setDuration(J)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    move-result-object v0

    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$6;

    invoke-direct {v1, p0, p2, p4, p3}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$6;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;ZIZ)V

    invoke-virtual {v0, v1}, Lcom/nineoldandroids/view/ViewPropertyAnimator;->setListener(Lcom/nineoldandroids/animation/Animator$AnimatorListener;)Lcom/nineoldandroids/view/ViewPropertyAnimator;

    return-void

    :cond_0
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    neg-int v0, v0

    int-to-float v0, v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    add-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_0

    :cond_1
    if-eqz p2, :cond_3

    if-eqz p3, :cond_2

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v0, v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    sub-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_0

    :cond_2
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    neg-int v0, v0

    int-to-float v0, v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    add-float/2addr v0, v1

    float-to-int v0, v0

    goto :goto_0

    :cond_3
    move v0, v1

    goto :goto_0
.end method

.method private openAnimate(Landroid/view/View;I)V
    .locals 2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-direct {p0, p1, v0, v1, p2}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->generateRevealAnimate(Landroid/view/View;ZZI)V

    :cond_0
    return-void
.end method

.method private removePendingDismisses(I)V
    .locals 4

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    invoke-static {v0}, Ljava/util/Collections;->sort(Ljava/util/List;)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    new-array v2, v0, [I

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    if-gez v1, :cond_1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0, v2}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onDismiss([I)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_2

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->resetPendingDismisses()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;

    iget v0, v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;->position:I

    aput v0, v2, v1

    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_0

    :cond_2
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;

    iget-object v2, v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;->view:Landroid/view/View;

    if-eqz v2, :cond_0

    iget-object v2, v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;->view:Landroid/view/View;

    const/high16 v3, 0x3f80

    invoke-static {v2, v3}, Lcom/nineoldandroids/view/ViewHelper;->setAlpha(Landroid/view/View;F)V

    iget-object v2, v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;->view:Landroid/view/View;

    const/4 v3, 0x0

    invoke-static {v2, v3}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    iget-object v2, v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;->view:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    iput p1, v2, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget-object v0, v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;->view:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_1
.end method

.method private resetCell()V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, -0x1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    if-eq v0, v3, :cond_1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    invoke-virtual {v1, v0}, Landroid/view/View;->setClickable(Z)V

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    invoke-virtual {v1, v0}, Landroid/view/View;->setLongClickable(Z)V

    iput-object v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    iput-object v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    iput v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    :cond_1
    return-void
.end method

.method private setActionsTo(I)V
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->oldSwipeActionRight:I

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->oldSwipeActionLeft:I

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    return-void
.end method

.method private setBackView(Landroid/view/View;)V
    .locals 1

    iput-object p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    new-instance v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$3;

    invoke-direct {v0, p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$3;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private setFrontView(Landroid/view/View;I)V
    .locals 1

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iput-object p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    new-instance v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$1;

    invoke-direct {v0, p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$1;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$2;

    invoke-direct {v0, p0, p2}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$2;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    goto :goto_0
.end method

.method private setParentView(Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->parentView:Landroid/view/View;

    return-void
.end method

.method private swapChoiceState(I)V
    .locals 6

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->getCountSelected()I

    move-result v3

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v4

    iget-object v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    if-eqz v4, :cond_3

    move v0, v1

    :goto_0
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-interface {v5, p1, v0}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    if-eqz v4, :cond_4

    add-int/lit8 v0, v3, -0x1

    :goto_1
    if-nez v3, :cond_0

    if-ne v0, v2, :cond_0

    iget-object v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v5}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onChoiceStarted()V

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->closeOpenedItems()V

    const/4 v5, 0x2

    invoke-direct {p0, v5}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->setActionsTo(I)V

    :cond_0
    if-ne v3, v2, :cond_1

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onChoiceEnded()V

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->returnOldActions()V

    :cond_1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0xb

    if-lt v0, v3, :cond_2

    iget-object v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    if-eqz v4, :cond_5

    move v0, v1

    :goto_2
    invoke-virtual {v3, p1, v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->setItemChecked(IZ)V

    :cond_2
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    if-eqz v4, :cond_6

    :goto_3
    invoke-virtual {v0, p1, v1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onChoiceChanged(IZ)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    invoke-virtual {p0, v0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->reloadChoiceStateInView(Landroid/view/View;I)V

    return-void

    :cond_3
    move v0, v2

    goto :goto_0

    :cond_4
    add-int/lit8 v0, v3, 0x1

    goto :goto_1

    :cond_5
    move v0, v2

    goto :goto_2

    :cond_6
    move v1, v2

    goto :goto_3
.end method


# virtual methods
.method protected closeAnimate(I)V
    .locals 2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getFirstVisiblePosition()I

    move-result v0

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    sub-int v0, p1, v0

    invoke-virtual {v1, v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-direct {p0, v0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->closeAnimate(Landroid/view/View;I)V

    :cond_0
    return-void
.end method

.method closeOpenedItems()V
    .locals 5

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getFirstVisiblePosition()I

    move-result v2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getLastVisiblePosition()I

    move-result v3

    move v1, v2

    :goto_0
    if-le v1, v3, :cond_1

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    sub-int v4, v1, v2

    invoke-virtual {v0, v4}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-direct {p0, v0, v1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->closeAnimate(Landroid/view/View;I)V

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method protected dismiss(I)I
    .locals 5

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getFirstVisiblePosition()I

    move-result v1

    iget-object v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v2}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getLastVisiblePosition()I

    move-result v2

    iget-object v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    sub-int v4, p1, v1

    invoke-virtual {v3, v4}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    add-int/lit8 v4, v4, 0x1

    iput v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->dismissAnimationRefCount:I

    if-lt p1, v1, :cond_0

    if-gt p1, v2, :cond_0

    invoke-virtual {p0, v3, p1, v0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->performDismiss(Landroid/view/View;IZ)V

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    new-instance v2, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;

    const/4 v3, 0x0

    invoke-direct {v2, p0, p1, v3}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;ILandroid/view/View;)V

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method protected getCountSelected()I
    .locals 3

    const/4 v0, 0x0

    move v1, v0

    move v2, v0

    :goto_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    return v2

    :cond_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    add-int/lit8 v2, v2, 0x1

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method protected getPositionsSelected()Ljava/util/List;
    .locals 3

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    return-object v2

    :cond_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public getSwipeActionLeft()I
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    return v0
.end method

.method public getSwipeActionRight()I
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    return v0
.end method

.method protected handlerPendingDismisses(I)V
    .locals 6

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$11;

    invoke-direct {v1, p0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$11;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V

    iget-wide v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    const-wide/16 v4, 0x64

    add-long/2addr v2, v4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public hasOpened()Z
    .locals 3

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getFirstVisiblePosition()I

    move-result v0

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getLastVisiblePosition()I

    move-result v2

    move v1, v0

    :goto_0
    if-le v1, v2, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_1
    return v0

    :cond_1
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    goto :goto_1

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method protected isChecked(I)Z
    .locals 1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isListViewMoving()Z
    .locals 1

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->listViewMoving:Z

    return v0
.end method

.method protected isSwipeEnabled()Z
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public makeScrollListener()Landroid/widget/AbsListView$OnScrollListener;
    .locals 1

    new-instance v0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$7;

    invoke-direct {v0, p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$7;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;)V

    return-object v0
.end method

.method public move(F)V
    .locals 8

    const/high16 v7, -0x3d60

    const/4 v6, 0x2

    const/4 v2, 0x1

    const/4 v1, 0x0

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    iget v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-virtual {v0, v3, p1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onMove(IF)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    invoke-static {v0}, Lcom/nineoldandroids/view/ViewHelper;->getX(Landroid/view/View;)F

    move-result v3

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_4

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    neg-int v0, v0

    int-to-float v0, v0

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    add-float/2addr v0, v4

    :goto_0
    add-float/2addr v0, v3

    move v3, v0

    :cond_0
    cmpl-float v0, v3, v5

    if-lez v0, :cond_1

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-nez v0, :cond_1

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_5

    move v0, v1

    :goto_1
    iput-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v6, :cond_6

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    const/16 v4, 0x8

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    :goto_2
    cmpg-float v0, v3, v5

    if-gez v0, :cond_2

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_2

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_7

    move v0, v1

    :goto_3
    iput-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v6, :cond_8

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_2
    :goto_4
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v2, :cond_9

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->parentView:Landroid/view/View;

    invoke-static {v0, p1}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->parentView:Landroid/view/View;

    const/high16 v1, 0x3f80

    const/high16 v2, 0x3f80

    const/high16 v3, 0x4000

    invoke-static {p1}, Ljava/lang/Math;->abs(F)F

    move-result v4

    mul-float/2addr v3, v4

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v4, v4

    div-float/2addr v3, v4

    sub-float/2addr v2, v3

    invoke-static {v1, v2}, Ljava/lang/Math;->min(FF)F

    move-result v1

    invoke-static {v5, v1}, Ljava/lang/Math;->max(FF)F

    move-result v1

    invoke-static {v0, v1}, Lcom/nineoldandroids/view/ViewHelper;->setAlpha(Landroid/view/View;F)V

    :cond_3
    :goto_5
    return-void

    :cond_4
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v0, v0

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    sub-float/2addr v0, v4

    goto :goto_0

    :cond_5
    move v0, v2

    goto :goto_1

    :cond_6
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2

    :cond_7
    move v0, v2

    goto :goto_3

    :cond_8
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_4

    :cond_9
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v6, :cond_e

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_a

    cmpl-float v0, p1, v5

    if-lez v0, :cond_a

    const/high16 v0, 0x42a0

    cmpg-float v0, v3, v0

    if-ltz v0, :cond_d

    :cond_a
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-nez v0, :cond_b

    cmpg-float v0, p1, v5

    if-gez v0, :cond_b

    cmpl-float v0, v3, v7

    if-gtz v0, :cond_d

    :cond_b
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_c

    const/high16 v0, 0x42a0

    cmpg-float v0, p1, v0

    if-ltz v0, :cond_d

    :cond_c
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-nez v0, :cond_3

    cmpl-float v0, p1, v7

    if-lez v0, :cond_3

    :cond_d
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    invoke-static {v0, p1}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    goto :goto_5

    :cond_e
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    invoke-static {v0, p1}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    goto :goto_5
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 12

    const/4 v11, 0x3

    const/4 v10, 0x2

    const/4 v2, 0x1

    const/4 v3, 0x0

    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->isSwipeEnabled()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return v1

    :cond_1
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    if-ge v0, v10, :cond_2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getWidth()I

    move-result v0

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    :cond_2
    invoke-static {p2}, Landroid/support/v4/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iput v11, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->hasOpened()Z

    move-result v0

    iput-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->hasOpenedWhenDown:Z

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->hasOpenedWhenDown:Z

    if-eqz v0, :cond_3

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->singleOpened:Z

    if-eqz v0, :cond_3

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->closeOpenedItems()V

    goto :goto_0

    :cond_3
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->paused:Z

    if-eqz v0, :cond_4

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    const/4 v3, -0x1

    if-ne v0, v3, :cond_0

    :cond_4
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildCount()I

    move-result v4

    new-array v0, v10, [I

    iget-object v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v3, v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getLocationOnScreen([I)V

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v3

    float-to-int v3, v3

    aget v5, v0, v1

    sub-int v5, v3, v5

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawY()F

    move-result v3

    float-to-int v3, v3

    aget v0, v0, v2

    sub-int v6, v3, v0

    move v3, v1

    :goto_1
    if-lt v3, v4, :cond_6

    :cond_5
    :goto_2
    invoke-virtual {p1, p2}, Landroid/view/View;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move v1, v2

    goto :goto_0

    :cond_6
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0, v3}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildAt(I)Landroid/view/View;

    move-result-object v7

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rect:Landroid/graphics/Rect;

    invoke-virtual {v7, v0}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0, v7}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getPositionForView(Landroid/view/View;)I

    move-result v8

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    invoke-interface {v0, v8}, Landroid/widget/ListAdapter;->isEnabled(I)Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    invoke-interface {v0, v8}, Landroid/widget/ListAdapter;->getItemViewType(I)I

    move-result v0

    if-ltz v0, :cond_7

    move v0, v2

    :goto_3
    if-eqz v0, :cond_a

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rect:Landroid/graphics/Rect;

    invoke-virtual {v0, v5, v6}, Landroid/graphics/Rect;->contains(II)Z

    move-result v0

    if-eqz v0, :cond_a

    invoke-direct {p0, v7}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->setParentView(Landroid/view/View;)V

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    invoke-virtual {v7, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-direct {p0, v0, v8}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->setFrontView(Landroid/view/View;I)V

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v0

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downX:F

    iput v8, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    iget-object v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_8

    move v0, v1

    :goto_4
    invoke-virtual {v3, v0}, Landroid/view/View;->setClickable(Z)V

    iget-object v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_9

    :goto_5
    invoke-virtual {v3, v1}, Landroid/view/View;->setLongClickable(Z)V

    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p2}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeBackView:I

    if-lez v0, :cond_5

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeBackView:I

    invoke-virtual {v7, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->setBackView(Landroid/view/View;)V

    goto/16 :goto_2

    :cond_7
    move v0, v1

    goto :goto_3

    :cond_8
    move v0, v2

    goto :goto_4

    :cond_9
    move v1, v2

    goto :goto_5

    :cond_a
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto/16 :goto_1

    :pswitch_1
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swiping:Z

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    const/4 v4, -0x1

    if-eq v0, v4, :cond_0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v0

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downX:F

    sub-float v5, v0, v4

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p2}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    const/16 v4, 0x3e8

    invoke-virtual {v0, v4}, Landroid/view/VelocityTracker;->computeCurrentVelocity(I)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v4

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v6, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_29

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    if-ne v0, v11, :cond_28

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v0

    cmpl-float v0, v0, v3

    if-lez v0, :cond_28

    move v0, v3

    :goto_6
    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    if-ne v4, v10, :cond_b

    iget-object v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v4}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v4

    cmpg-float v4, v4, v3

    if-gez v4, :cond_b

    move v0, v3

    :cond_b
    :goto_7
    iget-object v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v4}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v4

    invoke-static {v4}, Ljava/lang/Math;->abs(F)F

    move-result v4

    iget v6, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->minFlingVelocity:I

    int-to-float v6, v6

    cmpg-float v6, v6, v0

    if-gtz v6, :cond_11

    iget v6, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->maxFlingVelocity:I

    int-to-float v6, v6

    cmpg-float v6, v0, v6

    if-gtz v6, :cond_11

    const/high16 v6, 0x4000

    mul-float/2addr v4, v6

    cmpg-float v0, v4, v0

    if-gez v0, :cond_11

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v0

    cmpl-float v0, v0, v3

    if-lez v0, :cond_e

    move v4, v2

    :goto_8
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eq v4, v0, :cond_f

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    if-eq v0, v5, :cond_f

    move v2, v1

    :cond_c
    :goto_9
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->frontView:Landroid/view/View;

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-direct {p0, v0, v2, v4, v5}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->generateAnimate(Landroid/view/View;ZZI)V

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v10, :cond_d

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-direct {p0, v0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swapChoiceState(I)V

    :cond_d
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    iput v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downX:F

    iput-boolean v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swiping:Z

    goto/16 :goto_0

    :cond_e
    move v4, v1

    goto :goto_8

    :cond_f
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_10

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_10

    if-eqz v4, :cond_10

    move v2, v1

    goto :goto_9

    :cond_10
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_c

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_c

    if-nez v4, :cond_c

    move v2, v1

    goto :goto_9

    :cond_11
    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v4

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->moveThresholds:I

    if-lez v0, :cond_12

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->moveThresholds:I

    :goto_a
    int-to-float v0, v0

    cmpl-float v0, v4, v0

    if-lez v0, :cond_27

    cmpl-float v0, v5, v3

    if-lez v0, :cond_13

    move v0, v2

    :goto_b
    move v4, v0

    goto :goto_9

    :cond_12
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    div-int/lit8 v0, v0, 0x2

    goto :goto_a

    :cond_13
    move v0, v1

    goto :goto_b

    :pswitch_2
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->paused:Z

    if-nez v0, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    const/4 v4, -0x1

    if-eq v0, v4, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p2}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    const/16 v4, 0x3e8

    invoke-virtual {v0, v4}, Landroid/view/VelocityTracker;->computeCurrentVelocity(I)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v7

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->velocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v8

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getRawX()F

    move-result v0

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downX:F

    sub-float v5, v0, v4

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v4

    iget v6, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    iget v9, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-virtual {v0, v9}, Lcom/fortysevendeg/swipelistview/SwipeListView;->changeSwipeMode(I)I

    move-result v0

    if-ltz v0, :cond_14

    move v6, v0

    :cond_14
    if-nez v6, :cond_1a

    move v0, v3

    :goto_c
    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->slop:I

    int-to-float v4, v4

    cmpl-float v0, v0, v4

    if-lez v0, :cond_15

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v11, :cond_15

    cmpg-float v0, v8, v7

    if-gez v0, :cond_15

    iput-boolean v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swiping:Z

    cmpl-float v0, v5, v3

    if-lez v0, :cond_1e

    move v0, v2

    :goto_d
    iput-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1f

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    iget-boolean v7, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    invoke-virtual {v0, v4, v7}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onStartClose(IZ)V

    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    :goto_e
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0, v2}, Lcom/fortysevendeg/swipelistview/SwipeListView;->requestDisallowInterceptTouchEvent(Z)V

    invoke-static {p2}, Landroid/view/MotionEvent;->obtain(Landroid/view/MotionEvent;)Landroid/view/MotionEvent;

    move-result-object v0

    invoke-static {p2}, Landroid/support/v4/view/MotionEventCompat;->getActionIndex(Landroid/view/MotionEvent;)I

    move-result v4

    shl-int/lit8 v4, v4, 0x8

    or-int/lit8 v4, v4, 0x3

    invoke-virtual {v0, v4}, Landroid/view/MotionEvent;->setAction(I)V

    iget-object v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v4, v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    if-ne v0, v10, :cond_15

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->backView:Landroid/view/View;

    const/16 v4, 0x8

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    :cond_15
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swiping:Z

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    const/4 v4, -0x1

    if-eq v0, v4, :cond_0

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->hasOpenedWhenDown:Z

    if-eqz v0, :cond_16

    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->singleOpened:Z

    if-nez v0, :cond_19

    :cond_16
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_25

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_24

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    int-to-float v0, v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    sub-float/2addr v0, v1

    :goto_f
    add-float/2addr v0, v5

    :goto_10
    if-ne v6, v11, :cond_17

    cmpl-float v1, v0, v3

    if-gtz v1, :cond_19

    :cond_17
    if-ne v6, v10, :cond_18

    cmpg-float v1, v0, v3

    if-ltz v1, :cond_19

    :cond_18
    invoke-virtual {p0, v0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->move(F)V

    :cond_19
    move v1, v2

    goto/16 :goto_0

    :cond_1a
    if-eq v6, v2, :cond_26

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    iget v9, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1c

    if-ne v6, v11, :cond_1b

    cmpg-float v0, v5, v3

    if-gez v0, :cond_1b

    move v0, v3

    goto/16 :goto_c

    :cond_1b
    if-ne v6, v10, :cond_26

    cmpl-float v0, v5, v3

    if-lez v0, :cond_26

    move v0, v3

    goto/16 :goto_c

    :cond_1c
    if-ne v6, v11, :cond_1d

    cmpl-float v0, v5, v3

    if-lez v0, :cond_1d

    move v0, v3

    goto/16 :goto_c

    :cond_1d
    if-ne v6, v10, :cond_26

    cmpg-float v0, v5, v3

    if-gez v0, :cond_26

    move v0, v3

    goto/16 :goto_c

    :cond_1e
    move v0, v1

    goto/16 :goto_d

    :cond_1f
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_20

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    if-ne v0, v2, :cond_20

    iput v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    :goto_11
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    iget v4, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->downPosition:I

    iget v7, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    iget-boolean v8, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    invoke-virtual {v0, v4, v7, v8}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onStartOpen(IIZ)V

    goto/16 :goto_e

    :cond_20
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-nez v0, :cond_21

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    if-ne v0, v2, :cond_21

    iput v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    goto :goto_11

    :cond_21
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-eqz v0, :cond_22

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    if-ne v0, v10, :cond_22

    iput v10, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    goto :goto_11

    :cond_22
    iget-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipingRight:Z

    if-nez v0, :cond_23

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    if-ne v0, v10, :cond_23

    iput v10, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    goto :goto_11

    :cond_23
    iput v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeCurrentAction:I

    goto :goto_11

    :cond_24
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->viewWidth:I

    neg-int v0, v0

    int-to-float v0, v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    add-float/2addr v0, v1

    goto/16 :goto_f

    :cond_25
    move v0, v5

    goto/16 :goto_10

    :cond_26
    move v0, v4

    goto/16 :goto_c

    :cond_27
    move v4, v1

    move v2, v1

    goto/16 :goto_9

    :cond_28
    move v0, v4

    goto/16 :goto_6

    :cond_29
    move v0, v4

    goto/16 :goto_7

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected openAnimate(I)V
    .locals 2

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    iget-object v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getFirstVisiblePosition()I

    move-result v1

    sub-int v1, p1, v1

    invoke-virtual {v0, v1}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    iget v1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-direct {p0, v0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openAnimate(Landroid/view/View;I)V

    :cond_0
    return-void
.end method

.method protected performDismiss(Landroid/view/View;IZ)V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    move-object v0, p1

    check-cast v0, Landroid/view/ViewGroup;

    invoke-static {v0, v3}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->enableDisableViewGroup(Landroid/view/ViewGroup;Z)V

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result v1

    const/4 v2, 0x2

    new-array v2, v2, [I

    aput v1, v2, v3

    aput v4, v2, v4

    invoke-static {v2}, Lcom/nineoldandroids/animation/ValueAnimator;->ofInt([I)Lcom/nineoldandroids/animation/ValueAnimator;

    move-result-object v2

    iget-wide v3, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    invoke-virtual {v2, v3, v4}, Lcom/nineoldandroids/animation/ValueAnimator;->setDuration(J)Lcom/nineoldandroids/animation/ValueAnimator;

    move-result-object v2

    if-eqz p3, :cond_0

    new-instance v3, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$8;

    invoke-direct {v3, p0, v1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$8;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;I)V

    invoke-virtual {v2, v3}, Lcom/nineoldandroids/animation/ValueAnimator;->addListener(Lcom/nineoldandroids/animation/Animator$AnimatorListener;)V

    :cond_0
    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$9;

    invoke-direct {v1, p0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$9;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;Landroid/view/View;)V

    invoke-virtual {v2, v1}, Lcom/nineoldandroids/animation/ValueAnimator;->addListener(Lcom/nineoldandroids/animation/Animator$AnimatorListener;)V

    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$10;

    invoke-direct {v1, p0, v0, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$10;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;Landroid/view/ViewGroup$LayoutParams;Landroid/view/View;)V

    invoke-virtual {v2, v1}, Lcom/nineoldandroids/animation/ValueAnimator;->addUpdateListener(Lcom/nineoldandroids/animation/ValueAnimator$AnimatorUpdateListener;)V

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    new-instance v1, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;

    invoke-direct {v1, p0, p2, p1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener$PendingDismissData;-><init>(Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;ILandroid/view/View;)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-virtual {v2}, Lcom/nineoldandroids/animation/ValueAnimator;->start()V

    return-void
.end method

.method protected reloadChoiceStateInView(Landroid/view/View;I)V
    .locals 1

    invoke-virtual {p0, p2}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->isChecked(I)Z

    move-result v0

    if-eqz v0, :cond_1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableChecked:I

    if-lez v0, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableChecked:I

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableUnchecked:I

    if-lez v0, :cond_0

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableUnchecked:I

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_0
.end method

.method protected reloadSwipeStateInView(Landroid/view/View;I)V
    .locals 1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getWidth()I

    move-result v0

    int-to-float v0, v0

    invoke-static {p1, v0}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getWidth()I

    move-result v0

    neg-int v0, v0

    int-to-float v0, v0

    invoke-static {p1, v0}, Lcom/nineoldandroids/view/ViewHelper;->setTranslationX(Landroid/view/View;F)V

    goto :goto_0
.end method

.method public resetItems()V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    invoke-interface {v0}, Landroid/widget/ListAdapter;->getCount()I

    move-result v1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    if-le v0, v1, :cond_1

    :cond_0
    return-void

    :cond_1
    iget-object v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->opened:Ljava/util/List;

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->openedRight:Ljava/util/List;

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method protected resetPendingDismisses()V
    .locals 1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->pendingDismisses:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    return-void
.end method

.method protected returnOldActions()V
    .locals 1

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->oldSwipeActionRight:I

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    iget v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->oldSwipeActionLeft:I

    iput v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    return-void
.end method

.method public setAnimationTime(J)V
    .locals 2

    const-wide/16 v0, 0x0

    cmp-long v0, p1, v0

    if-lez v0, :cond_0

    iput-wide p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    :goto_0
    return-void

    :cond_0
    iget-wide v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->configShortAnimationTime:J

    iput-wide v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->animationTime:J

    goto :goto_0
.end method

.method public setEnabled(Z)V
    .locals 1

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    :goto_0
    iput-boolean v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->paused:Z

    return-void

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public setLeftOffset(F)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->leftOffset:F

    return-void
.end method

.method public setMoveThresholds(I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->moveThresholds:I

    return-void
.end method

.method public setRightOffset(F)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->rightOffset:F

    return-void
.end method

.method public setSwipeActionLeft(I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionLeft:I

    return-void
.end method

.method public setSwipeActionRight(I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeActionRight:I

    return-void
.end method

.method public setSwipeClosesAllItemsWhenListMoves(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeClosesAllItemsWhenListMoves:Z

    return-void
.end method

.method protected setSwipeDrawableChecked(I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableChecked:I

    return-void
.end method

.method protected setSwipeDrawableUnchecked(I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeDrawableUnchecked:I

    return-void
.end method

.method public setSwipeMode(I)V
    .locals 0

    iput p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeMode:I

    return-void
.end method

.method public setSwipeOpenOnLongPress(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeOpenOnLongPress:Z

    return-void
.end method

.method protected unselectedChoiceStates()V
    .locals 6

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getFirstVisiblePosition()I

    move-result v3

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getLastVisiblePosition()I

    move-result v4

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->onChoiceEnded()V

    invoke-virtual {p0}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->returnOldActions()V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    if-lt v1, v3, :cond_1

    if-gt v1, v4, :cond_1

    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeListView:Lcom/fortysevendeg/swipelistview/SwipeListView;

    sub-int v5, v1, v3

    invoke-virtual {v0, v5}, Lcom/fortysevendeg/swipelistview/SwipeListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    iget v5, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->swipeFrontView:I

    invoke-virtual {v0, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0, v0, v1}, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->reloadChoiceStateInView(Landroid/view/View;I)V

    :cond_1
    iget-object v0, p0, Lcom/fortysevendeg/swipelistview/SwipeListViewTouchListener;->checked:Ljava/util/List;

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    invoke-interface {v0, v1, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method
